<template>
  <footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-left">
          <p class="footer-text">
            © {{ currentYear }} 你的名字. All rights reserved.
          </p>
          <p class="footer-powered">
            Powered by <span class="glow-text">Vue.js</span> & <span class="glow-text">Vite</span>
          </p>
        </div>
        <div class="footer-right">
          <p class="footer-quote">
            <code>if (you Enjoy) { star ★ this; }</code>
          </p>
        </div>
      </div>
      <div class="footer-bottom">
        <div class="ascii-art">
          <pre>
     _     _            _            _ _ _
    | |   | |          | |          | | | |
    | |__ | | __ _  ___| | _____  __| | | |
    | '_ \| |/ _` |/ __| |/ / _ \/ _` | | |
    | |_) | | (_| | (__|   <  __/ (_| | | |
    |_.___/|_|\__,_|\___|_|\_\___|\__,_|_|_|
          </pre>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup>
const currentYear = new Date().getFullYear()
</script>

<style scoped>
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-text,
.footer-powered {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-powered {
  font-family: 'JetBrains Mono', monospace;
}

.footer-quote {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.footer-quote code {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
}

.ascii-art {
  opacity: 0.3;
  filter: blur(0.5px);
}

.ascii-art pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent-blue);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .ascii-art pre {
    font-size: 0.4rem;
  }
}
</style>
